﻿@model cloudscribe.Core.Web.ViewModels.SiteUser.LoginWithRecoveryCodeViewModel
@using cloudscribe.Core.Web
@using Microsoft.Extensions.Localization
@inject IStringLocalizer<CloudscribeCore> sr
@{ 
    ViewData["BodyClass"] = "account-section login2fa-recovery";
}
<h2>@ViewData["Title"]</h2>
<hr />
<p>
    @sr["You have requested to login with a recovery code. This login will not be remembered until you provide an authenticator app code at login or disable 2FA and login again."]
</p>
<div class="row">
    <div class="col-md-4">
        <form method="post">
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="RecoveryCode"></label>
                <input asp-for="RecoveryCode" class="form-control" autocomplete="off" />
                <span asp-validation-for="RecoveryCode" class="text-danger"></span>
            </div>
            <button type="submit" class="btn btn-default">@sr["Log in"]</button>
        </form>
    </div>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_UnobtrusiveValidationScriptsPartial"); }
}